import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {ClassificationIdentificationComponent} from "./classification-identification.component";
import {AddEditIdentifyComponent} from "./add-edit-identify/add-edit-identify.component";


const routes: Routes = [
  {
    path: '',
    component: ClassificationIdentificationComponent,
    data: {title: '化学品分辨类别', key: 'classification-identification'}
  },
  {
    path: 'add-edit-identify',
    component: AddEditIdentifyComponent,
    data: {
      title: '化学品分辨类别',
      shouldDetach: 'no',
      key: 'add-edit-identify',
      relatedLink: ['add-edit-identify', 'classification-identification']
    }
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class ClassificationIdentificationRoutingModule {
}
